<template>
  <div class="register">
    <div class="reg-box">
      <h3>iHRM后台登录系统</h3>

      <el-form ref="form" label-width="0px" class="login-form">
        <el-form-item>
          <el-input prefix-icon="el-icon-mobile-phone" placeholder="11位手机号"></el-input>
        </el-form-item>

        <el-form-item>
          <el-input prefix-icon="el-icon-key" type="text" placeholder="输入验证码">
            <template slot="suffix">
              <el-button round type="primary" plain size="small">获取验证码</el-button>
            </template>
          </el-input>
        </el-form-item>

        <el-form-item>
          <el-input prefix-icon="el-icon-lock" placeholder="6~16位密码"></el-input>
        </el-form-item>

        <el-form-item>
          <el-input prefix-icon="el-icon-lock" placeholder="确认密码"></el-input>
        </el-form-item>

        <el-form-item>
          <el-button type="primary" class="loginBtn">下一步</el-button>
        </el-form-item>
      </el-form>

      <a href="javascript:;" @click="toLink">使用已有账户登录</a>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    toLink() {
      this.$router.push("./login");
    }
  }
};
</script>

<style scoped lang="less">
.register {
  width: 100vw;
  height: 100vh;
  background: url("../../assets/images/login.jpg");
  .reg-box {
    width: 450px;
    height: 490px;
    padding: 10px;
    border-radius: 3px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    h3 {
      display: flex;
      justify-content: center;
      color: #fff;
      letter-spacing: 0.2em;
    }
    .loginBtn {
      width: 100%;
      letter-spacing: 0.5em;
    }
    a {
      display: flex;
      justify-content: center;
      font-size: 16px;
      letter-spacing: 0.1em;
      text-decoration: none;
      color: #fff;
    }
  }
}
</style>